<template>
 <div class="container">
   <Category title="美食">
     <img src="https://cn.vuejs.org/images/logo.svg" alt="">
   </Category>
   <Category title="游戏">
     <ul>
       <li v-for="(item, index) in games" :key="index">{{item}}</li>
     </ul>
   </Category>
   <Category title="游戏">
     <video controls src="http://vjs.zencdn.net/v/oceans.mp4"></video>
   </Category>
 </div>
</template>

<script>
import Category from './components/Category'

export default {
  name: "App",
  components: {Category},
  data() {
    return {
      foots: ['火锅', '烧烤', '小龙虾', '牛排'],
      games: ['红色警戒', '穿越火线', '劲舞团', '超级玛丽'],
      films: ['《教父》', '《拆弹专家》', '《你好，李焕英》', '《金刚》']
    }
  }
}
</script>
<style lang="css" scoped>
.container {
  padding: 20px;
  display: flex;
  justify-content: space-around;
}  
/* 插槽中的样式可以在这个里面定义，也可以在Category组件中定义 */
/* img, video {
  width: 100%;
} */
</style>
